package com.lgx.right.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.right.entity.Organization;

public interface IOrganizationDao {

	public Organization createOrganization(Organization org)throws DataException;
	public Organization updateOrganization(Organization org)throws DataException;
	public void deleteOrganization(Organization org)throws DataException;
	public void deleteOrganization(long id)throws DataException;
	
	public Organization findOrganizationById(long id);
	public Organization findOrganizationByUserId(long userId);
	
	public List<Organization> findOrganizationList(String sql);
	public List<Organization> findOrganizationListByareaNode(String areaNode);
	
	public List<Organization> findOrganizationListByPoints(Double x,Double y);
	
	public List<Organization> findOrganizationList(String sql,Object[] params,int pageSize,int pageNum);
	public Pagination findOrganizationPagination(String sql,Object[] params,int pageSize,int pageNum);
	public Pagination findOrganizationPagination(Object[] params, int pageSize,int pageNum);
	public List<Organization> findOrganizationParent(String type);
	public void deleteOrganizations(String[] ids) throws DataException;
}
